﻿    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta http-equiv="Content-Language" content="utf-8" />
<meta name="robots" content="all" />
<meta name="author" content="Tencent-ISRD" />
<meta name="Copyright" content="Tencent" />
<style type="text/css">
    /*其实background-clip的真正作用是决定背景在哪些区域显示*/
    .paddingDiv
    {
        /*border: 20px dotted rgb(102, 102, 102); */
        padding: 20px; 
        background: rgb(204, 204, 204) url(Images/aaa.jpg) no-repeat scroll 0% 0%; 
        width: 300px; 
        text-align: center; 
        font-weight: bold; 
        color: rgb(0, 0, 0); 
        -moz-background-inline-policy: -moz-initial; 
        -moz-background-clip: padding; 
        -moz-background-origin: padding;
        }
</style>
<title>background-clip</title>
</head>
<body>
<div class="paddingDiv">padding<div style="border: 1px solid rgb(51, 51, 51); height: 200px;">content</div></div>

</body>
</html>
 